import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const _import = require('./import-' + process.env.NODE_ENV);
let mainRoutes = []
//人员预约
mainRoutes = [
  { path: '/', component: _import('login'), name: 'login', meta: { title: '登录' } },
  { path: '/main', component: _import('main'), name: 'main', meta: { title: '登录' } },
];


const router = new Router({
  mode: 'hash',
  scrollBehavior: () => ({ y: 0 }),
  routes: mainRoutes
})

export default router
